package com.xawl.service;

import com.xawl.pojo.PopularNav;
import com.xawl.pojo.Question;

import java.util.List;

public interface QuestionService {

    Integer getTotal();  //获取总记录数

    int addQuestion(Question question);

    int deleteQuestion(int id);

    int deleteQuestions(Long[] ids);

    int updateQuestion(Question question);

    Question findQuestionById(int id);

    List<Question> queryAll();

    //根据问题标题进行模糊查询
    List<Question> searchCourse(String q_title);
}
